package server.run;


import java.nio.ByteBuffer;

import server.socket.DemoServerSocket;

public class ServerRun {
	public static void main(String[] args) {
		int asd = 3024;
		byte[] bb = ByteBuffer.allocate(4).putInt(asd).array();
		asd = ByteBuffer.wrap(bb).getInt();
		int port = 1234;
		DemoServerSocket demoServerSocket = new DemoServerSocket(port);
		demoServerSocket.create();
		
		Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                	System.out.println("system kill");
                } catch (Throwable ex) {
                }
            }
        }, "HOOK    "));
	}
	
}
